<?php

namespace App\Models; //这里从App改成了App\Models

use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;


class UserFavorite extends Model
{
    use Notifiable;

    protected $table = 'user_favorite';

    protected $fillable = [
        'user_id',
        'activity_id',
    ];


    public function activity()
    {
        return $this->hasOne(Activity::class,'id','activity_id');
    }


}
